﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Base_Data_Base_Data_Left : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (ZhiAo.Management.UserInfo.CurrentUserInfo.User.Sex == 0)
        {
            userHead.ImageUrl = "~/Base_Data/Base_Data/Img/girl.png";
        }
        ltUser.Text = ZhiAo.Management.UserInfo.CurrentUserInfo.User.TrueName;

    }

    protected void lbtnLogout_Click(object sender, EventArgs e)
    {
        HttpCookie aCookie;
        string cookieName;
        int limit = Request.Cookies.Count;
        for (int i = 0; i < limit; i++)
        {
            cookieName = Request.Cookies[i].Name;
            aCookie = new HttpCookie(cookieName);
            aCookie.Expires = DateTime.Now.AddDays(-1);
            Response.Cookies.Add(aCookie);
        }

        //Response.Cookies.Clear();
        //Request.Cookies.Clear();
        Session.Abandon();
        Response.Write("<script>window.parent.location.href='../../Login.aspx'</script>");
    }
}
